/**
 * @author Christopher
 */


function consumeOrder_replace() {
	if (orderQueue.length > 0) {
				var currentOrder = {};
				currentOrder == orderQueue[i]) {
					var date = getDate();
					var totalCost = calcCost(currentOrder.Ingredients);
					writeToConsole("Consumed order:" + currentOrder.Name + " @ " + date);
					money = money + (parseFloat(currentOrder.Price) - totalCost);
					writeToConsole("Price:" + parseFloat(currentOrder.Price) + " " + "Cost:" + totalCost + " " + "Profit:" + (parseFloat(currentOrder.Price) - totalCost));
					updateMoney();
					orderQueue.shift();
	}
}

function addOrder_replace() {
	if (selectedMenuQueue.length > 0 && hiredEmployeeQueue.length > 0) {
		
	
			orderQueue.push();
			var date = getDate();
			writeToConsole("added " + selectedMenuQueue[rand2] + " to the order queue @ " + date);
		}
	}
	//consumeOrder();
}